home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 3.2
/
Ham Radio Version 3.2 (Chestnut CD-ROMs)(1993).ISO
/
bbs
/
bpq402a
/
appls.doc
< prev
next >
Wrap
Text File
|
1990-02-19
|
3KB
|
80 lines
Application Support for G8BPQ Switch
Until now, the switch has supported connects to two sets of application
programs. The first is the BBS, obtained by connecting to the BBS call/alias,
or connecting to the switch end entering BBS. The second is the SYSOP,
obtained by entering the 'C' command without a callsign from the switch. The
commands CONOK ON or HOSTOK ON had to be sent by the program, to indicate
that the TNC port was available. From Version 3.20, up to 8 applications
are supported. The first two are as above, the third is reserved for remote
SYSOP access, and the other 5 are available for your own applications. The
list of application names is given in the APPLICATIONS= param in the config
file, and is a string of up to 8 names of up to 12 chars each, separated by
commas. The names will be listed to the user, along with the normal commands
in the 'available commands' prompt, obtained by entering ?. The user enters
the Application name to connect to it, in the same way as he can enter BBS to
connect to the BBS. Note that, for the moment at least, these additional
applications do not have there own callsign/alias, so must be accessed via
the switch. (but you could rename the first application if you really want
to!).
From version 3.55 onwards, applications may use either normal TNC2
mode, or PK232 Hostmode, and it is possible to configure the port so
that the user's command line is passed to the application. You can also
specify whether the user should receive a '*** Connected to APPL' message,
and whether the Application gets a '*** CONNECTED to USER' message. The
TNCPORTLIST has been replaced by sets of params in the following format:
TNCPORT
COM=n ; COMBIOS port number
TYPE=TNC2 | KISS | PK232/AA4RE | PK232/UFQ
KISSMASK=nn ; Required only for KISS. Param is in HEX.
APPLMASK=nn ; Defaults to 1 (BBS)
APPLFLAGS=nn ; Used for TNC2 and Host Mode. Defaults to 6
ENDPORT
;
APPLMASK is used in the same way as the APPL TNC command described
below. It is really for Host Mode systems, which dont allow the APPL
command, but can be used for others if required. The value is in decimal.
APPLFLAGS control whether the user's command is passed to the application,
and also whether 'CONNECTED' messages are sent in each direction. Values
are:
1 - Send Command to application.
2 - Send 'Connected' to user.
4 - Send 'Connected' to application.
Values may be combined as required - the default is 6, which gives the
same result as the older versions.
There is also an equivalent APPLFLAG command available at TNC2 command level.
When using TNC2 mode, the program should send two commands to the virtual
TNC:-
APPL $NN
Where NN has a bit set corresponding to the appl. number. eg $01 for BBS,
$08 for 4th appl. More than one can be set, allowing the port to support
more than one application. This may be appropriate if the command line is
sent to the application, so it can work out what the user wants.
Note the the default is $01, so existing BBS applications will still work.
CONOK ON
To indicate port is ready to accept connects.
See HOSTMODE.DOC for the equivalent Hostmode commands.
There is a trivial sample application program, SAMPLE.C on the disk.